package com.yuxinmuyu.sports_management.bean.entiy;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;
import java.util.Date;

@Data
@TableName("sports_score")
@AllArgsConstructor
@NoArgsConstructor
public class SportsScore implements Serializable {

    @ApiModelProperty("成绩单ID")
    @TableId(value = "ScoreID",type = IdType.AUTO)
    private Integer scoreID;

    @ApiModelProperty("学期ID")
    private String yearTermID;

    @ApiModelProperty("项目ID")
    private Integer sportsID;

    @ApiModelProperty("报名人ID")
    private String userID;

    @ApiModelProperty("操作时间")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date lastDate;

    @ApiModelProperty("操作人")
    private String operator;

    @ApiModelProperty("成绩")
    private String score;

    @ApiModelProperty("是否获奖")
    private boolean awardsFlag;

    @ApiModelProperty("获奖等级")
    private String awardsName;

}
